package zpx.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * ftp����ʵ��
 * 
 */
@Entity
@Table(name = "t_ftpattachment")
public class FtpAttachment extends BaseObject implements Serializable {
    
    /**
     * 
     */
    private static final long serialVersionUID = -6243013789090388877L;
    
    //文件atta_id
    private String            attaId;
    // 关联 record_id
    private String            recordId;
    //文件名称 atta_name
    private String            attaName;
    // 文件路径atta_path
    private String            attaPath;
    // 文件类型 atta_type
    private String            attaType;
    // 分类ʶ atta_group_id
    private String            attaGroupId;
    //状态（0正常 1删除）
    private String            attaStatus;
    //备注 remark
    private String            remark;
    // ������ create_person
    private String            createPerson;
    // ����ʱ�� create_date
    private Date              createDate;
    // ������ update_person
    private String            updatePerson;
    // ����ʱ�� update_date
    private Date              updateDate;
    //简介
    private String            content;
    // 文件上传状态̬ atta_status(0上传完成1上传中2上传出错）
    private String            status;
    //�ؼ���
    private String            keywords;
  
    
    /**
     * �����ļ���ʶ��ȡ
     */
    @Id
    @Column(name = "attaId", unique = true, nullable = false, length = 20)
    public String getAttaId() {
        return attaId;
    }
    
    /**
     * �����ļ���ʶ�趨
     * 
     * @param attaId �����ļ���ʶ
     */
    public void setAttaId(String attaId) {
        this.attaId = attaId;
    }
    
    /**
     * ��Ӧ�����¼������ʶ��ȡ
     */
    @Column(name = "recordId", length = 20)
    public String getRecordId() {
        return recordId;
    }
    
    /**
     * ��Ӧ�����¼������ʶ�趨
     * 
     * @param recordId ��Ӧ�����¼������ʶ
     */
    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }
    
    /**
     * �������ƻ�ȡ
     */
    @Column(name = "attaName")
    public String getAttaName() {
        return attaName;
    }
    
    /**
     * ���������趨
     * 
     * @param attaName ��������
     */
    
    public void setAttaName(String attaName) {
        this.attaName = attaName;
    }
    
    /**
     * ����·����ȡ
     */
    @Column(name = "attaPath")
    public String getAttaPath() {
        return attaPath;
    }
    
    /**
     * ����·���趨
     * 
     * @param attaPath ����·��
     */
    public void setAttaPath(String attaPath) {
        this.attaPath = attaPath;
    }
    
    /**
     * �������ͻ�ȡ
     */
    @Column(name = "attaType")
    public String getAttaType() {
        return attaType;
    }
    
    /**
     * ���������趨
     * 
     * @param attaType ��������
     */
    public void setAttaType(String attaType) {
        this.attaType = attaType;
    }
    
    /**
     * �����ļ����ʶ��ȡ
     */
    @Column(name = "attaGroupId")
    public String getAttaGroupId() {
        return attaGroupId;
    }
    
    /**
     * �����ļ����ʶ�趨
     * 
     * @param attaGroupId �����ļ����ʶ
     */
    public void setAttaGroupId(String attaGroupId) {
        this.attaGroupId = attaGroupId;
    }
    
    /**
     * ����״̬��ȡ
     */
    @Column(name = "attaStatus")
    public String getAttaStatus() {
        return attaStatus;
    }
    
    /**
     * ����״̬�趨
     * 
     * @param attaStatus ����״̬
     */
    public void setAttaStatus(String attaStatus) {
        this.attaStatus = attaStatus;
    }
    
    /**
     * ��ע��ȡ
     */
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }
    
    /**
     * ��ע�趨
     * 
     * @param remark ��ע
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    /**
     * �����˻�ȡ
     */
    @Column(name = "createPerson")
    public String getCreatePerson() {
        return this.createPerson;
    }
    
    /**
     * �������趨
     * 
     * @param createPerson ������
     */
    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }
    
    /**
     * ����ʱ���ȡ
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "createDate")
    public Date getCreateDate() {
        return this.createDate;
    }
    
    /**
     * ����ʱ���趨
     * 
     * @param createDate ����ʱ��
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    
    /**
     * �����˻�ȡ
     */
    @Column(name = "updatePerson")
    public String getUpdatePerson() {
        return this.updatePerson;
    }
    
    /**
     * �������趨
     * 
     * @param updatePerson ������
     */
    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }
    
    /**
     * ����ʱ���ȡ
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "updateDate")
    public Date getUpdateDate() {
        return this.updateDate;
    }
    
    /**
     * ����ʱ���趨
     * 
     * @param updateDate ����ʱ��
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    
    @Override
    public String toString() {
        return null;
    }
    
    @Override
    public boolean equals(Object o) {
        return false;
    }
    
    @Override
    public int hashCode() {
        return 0;
    }

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
    
}

